from selenium.webdriver.common.by import By
from web_wechat_po.page_object.base_page import BasePage
from web_wechat_po.utils.log_utils import logger


class HomePage(BasePage):
    __Add_member_page = (By.CSS_SELECTOR, ".ww_indexImg_AddMember")

    def click_add_member(self):
        logger.info("点击添加成员")
        # 点击添加成员
        self.do_find(self.__Add_member_page).click()
        # ==》通讯录
        from web_wechat_po.page_object.add_member_page import AddMemberPage
        return AddMemberPage(self.driver)